SynthesizeScrollGestureRequest

data class SynthesizeScrollGestureRequest(x: Double, y: Double, xDistance: Double?, yDistance: Double?, xOverscroll: Double?, yOverscroll: Double?, preventFling: Boolean?, speed: Int?, gestureSourceType: GestureSourceType?, repeatCount: Int?, repeatDelayMs: Int?, interactionMarkerName: String?)

Represents request frame that can be used with Input#synthesizeScrollGesture operation call.

Synthesizes a scroll gesture over a time period by issuing appropriate touch events.

See also

Constructors

SynthesizeScrollGestureRequest
Link copied to clipboard
fun SynthesizeScrollGestureRequest(x: Double, y: Double, xDistance: Double? = null, yDistance: Double? = null, xOverscroll: Double? = null, yOverscroll: Double? = null, preventFling: Boolean? = null, speed: Int? = null, gestureSourceType: GestureSourceType? = null, repeatCount: Int? = null, repeatDelayMs: Int? = null, interactionMarkerName: String? = null)

Properties

gestureSourceType
Link copied to clipboard
val gestureSourceType: GestureSourceType? = null
Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
interactionMarkerName
Link copied to clipboard
val interactionMarkerName: String? = null
The name of the interaction markers to generate, if not empty (default: "").
preventFling
Link copied to clipboard
val preventFling: Boolean? = null
Prevent fling (default: true).
repeatCount
Link copied to clipboard
val repeatCount: Int? = null
The number of times to repeat the gesture (default: 0).
repeatDelayMs
Link copied to clipboard
val repeatDelayMs: Int? = null
The number of milliseconds delay between each repeat.
speed
Link copied to clipboard
val speed: Int? = null
Swipe speed in pixels per second (default: 800).
x
Link copied to clipboard
val x: Double
X coordinate of the start of the gesture in CSS pixels.
xDistance
Link copied to clipboard
val xDistance: Double? = null
The distance to scroll along the X axis (positive to scroll left).
xOverscroll
Link copied to clipboard
val xOverscroll: Double? = null
The number of additional pixels to scroll back along the X axis, in addition to the given distance.
y
Link copied to clipboard
val y: Double
Y coordinate of the start of the gesture in CSS pixels.
yDistance
Link copied to clipboard
val yDistance: Double? = null
The distance to scroll along the Y axis (positive to scroll up).
yOverscroll
Link copied to clipboard
val yOverscroll: Double? = null
The number of additional pixels to scroll back along the Y axis, in addition to the given distance.

Sources

jvm source
Link copied to clipboard